home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / test / testc.sml < prev    next >
Encoding:
Text File  |  1997-08-18  |  140 b   |  8 lines  |  [TEXT/R*ch]

  1. (* Printing cyclic structures *)
  2.  
  3. datatype xxx = P | Q of {key: (xxx ref * xxx ref) list};
  4.  
  5. val z = ref P;
  6. z := Q{key = [(z,z), (z,z)]};
  7. z;
  8.